<template>
  <div class="vl">
    <div>
      <p class="label">{{ lname }}</p>
      <p class="value" :style="{ 'color': vcolor }">{{ vname }}</p>
    </div>
  </div>
</template>

<script>
export default {
  name: 'index',
  props: {
    lname: {
      type: String,
      default: '--'
    },
    vname: {
      type: String,
      default: '0'
    },
    vcolor: {
      type: String,
      default: 'rgb(45, 45, 45)',
    }
  },
}
</script>

<style lang="scss" scoped>
  .vl {
    > div {
      margin: 0 auto;
      width: 150px;
      height: 20px;
      line-height: 20px;
      &:after {
        content: '';
        clear: both;
        display: table;
      }
      .label {
        font-size: 14px;
        width: 40%;
        text-align: right;
        float: left;
      }
      .value {
        font-size: 18px;
        font-weight: bold;
        margin-left: 10px;
        float: left;
        width: 50%;
      }
    }
  }
</style>
